<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <link rel="stylesheet" href="../dest/index.css">
</head>
<body>
    <div id="app"></div>
    <script src="https://cdn.jsdelivr.net/npm/vue@next"></script>
    <script src="../dest/index.js"></script>
    <script>
        console.log(V3ComponentsCdp)

        const app = window.Vue.createApp({
            template: `
                <div>
                    <pl-button label="label"></pl-button>
                    <pl-button>插槽内容</pl-button>
                    <pl-input/>
                    <pl-input status="error" ref="myInput"/>
                    <button @click="outerFocus">outerFocus</button>
                </div>
            `,
            setup() {
                const inputRef = window.V3ComponentsCdp.Input.use.ref('myInput')
                console.log('inputREF', inputRef)
                return {
                    outerFocus() {
                        inputRef.value.methods.focus(false)
                    }
                }
            }
        })
        app.use(window.V3ComponentsCdp)
        app.mount('#app')
    </script>
</body>
</html>